<template>
  <div class="TopLeft">
    <div class="titlestyle"><i class="el-icon-time iconstyle" />订单实时监控</div>
    <div class="TopLeftcontent">
      <div>总订单数</div>
      <div>{{ thetopleftinfo.totleall }}</div>
      <div>
        <span>已完成</span>
        <span class="spanstyle">{{ thetopleftinfo.totlealready }}</span>
        <span>已取消</span>
        <span class="spanstyle">{{ thetopleftinfo.totlecancle }}</span>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  name: 'TopLeft',
  components: {},
  props: {
    thetopleftinfo: {
      type: Object,
      required: true
    }
  },
  data() {
    return {

    }
  },
  computed: {
    ...mapGetters([
      'position',
      'storeId',
      'userId',
      'name'
    ])
  },
  created() {

  },
  mounted() {
  },
  methods: {
  }
}
</script>

<style lang="scss">
  .TopLeft {
    .titlestyle{
      padding-left: 20px;
      font-size: 16px;
      font-weight: bold;
      width: 100%;
      height: 50px;
      line-height: 50px;
      border-bottom: 1px solid lightgray;
    }
    .iconstyle{
      font-size: 20px;
      font-weight: bold;
      margin-right: 10px;
    }
    .TopLeftcontent{
      height: 150px;
    }
    .TopLeftcontent div{
      margin-top: 20px;
      margin-left: 10%;
    }
    .TopLeftcontent div:nth-child(1){
      font-size: 16px;
      color: gray;
    }
    .TopLeftcontent div:nth-child(2){
      font-weight: bold;
      font-size: 30px;
    }
    .spanstyle{
      display: inline-block;
      width: 100px;
      font-size: 16px;
      font-weight: bold;
    }
  }
</style>
